package com.athena.crm.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.athena.common.core.validate.AddGroup;
import com.athena.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.athena.common.core.domain.BaseEntity;

/**
 * CRM客户业务对象 crm_customer
 *
 * @author ruoyi
 * @date 2023-09-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CrmCustomerBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 客户状态（客户/已转公海）
     */
    @NotBlank(message = "客户状态", groups = { AddGroup.class, EditGroup.class })
    private String customerStatus;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 标签
     */
    @NotBlank(message = "标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 客户类型
     */
    @NotBlank(message = "客户类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 所属行业
     */
    @NotBlank(message = "所属行业不能为空", groups = { AddGroup.class, EditGroup.class })
    private String industry;

    /**
     * 审批状态
     */
    private String approvalStatus;

    /**
     * 审批提交时间
     */
    private Date approvalSubmitTime;

    /**
     * 审批完成时间
     */
    private Date approvalCompleteTime;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contacts;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 跟进状态
     */
    @NotBlank(message = "跟进状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String followStatus;

    /**
     * 客户来源
     */
    @NotBlank(message = "客户来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String customerSources;

    /**
     * 责任人
     */
    private String head;

    /**
     * 责任人集合
     */
    private String[] heads;

    /**
     * 部门
     */
    private String deptId;

    /**
     * 部门集合
     */
    private String[] deptIds;

    /**
     * 前负责人
     */
    private String formerHead;

    /**
     * 前所属部门
     */
    private Long formerDeptId;

    /**
     * 前客户公海
     */
    private String formerHighSeas;

    /**
     * 当前客户公海
     */
    private String currentHighSeas;

    /**
     * 划入公海时间
     */
    private Date intoHightSeasTime;

    /**
     * 最新跟进记录
     */
    private String latestFollowRecords;

    /**
     * 实际跟进记录
     */
    private Date realityFollowRecords;

    /**
     * 未跟进天数
     */
    private Long notFollowDays;

    /**
     * 下次跟进时间
     */
    private Date nextFollowTime;

    /**
     * 渠道
     */
    private String channel;

    /**
     * 转客户时间
     */
    private Date transferCustomerTime;

    /**
     * 最后通话时间
     */
    private Date lastCallTime;


}
